Sd Jwt Verifier
A single point for verifying SD-JWTs in both SD-JWT and SD-JWT+KB formats, using either compact or JWS JSON serialization.
Inheritors
Functions
Link copied to clipboard
abstract suspend fun verify(jwtSignatureVerifier: JwtSignatureVerifier<JWT>, unverifiedSdJwt: String): Result<SdJwt<JWT>>
Verifies an SD-JWT serialized using compact serialization.
open suspend fun verify(jwtSignatureVerifier: JwtSignatureVerifier<JWT>, unverifiedSdJwt: JsonObject): Result<SdJwt<JWT>>
Verifies an SD-JWT serialized using JWS JSON serialization (either general or flattened format) as defined by RFC7515 and extended by SD-JWT specification.
abstract suspend fun verify(jwtSignatureVerifier: JwtSignatureVerifier<JWT>, keyBindingVerifier: KeyBindingVerifier.MustBePresentAndValid<JWT>, unverifiedSdJwt: String): Result<SdJwtAndKbJwt<JWT>>
Verifies a SD-JWT+KB serialized using compact serialization.
open suspend fun verify(jwtSignatureVerifier: JwtSignatureVerifier<JWT>, keyBindingVerifier: KeyBindingVerifier.MustBePresentAndValid<JWT>, unverifiedSdJwt: JsonObject): Result<SdJwtAndKbJwt<JWT>>
Verifies a SD-JWT+KB in JWS JSON serialization.